package com.example.seckillconsumer.utils;

import java.util.Map;

/**
 * @author likaiping
 * @createTime 2024/7/3 19:31
 */
public class GetUidUtil {
    public static Integer getUaccount(String token) {
        Map<String, Object> claims = JwtUtil.parseToken(token);
        Integer uaccount = (Integer) claims.get("uaccount");
        return uaccount;
    }
}
